package com.zhihuiweijian.demo.dao;

import com.zhihuiweijian.demo.model.Waste;
import com.zhihuiweijian.demo.model.WasteExample;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WasteMapper {
    int insert(Waste record);

    Waste findById(Integer id);


    void updateCollect(Integer id, Integer collectManId, String collectManName, Date date);

    void updateWareHouse(Integer id, Integer warehouseManId, String warehouseManName, Date date);

    void updateTransfer(Integer id, Integer transferManId, String transferManName, Date date);

    void updateRuin(Integer id, Integer ruinManId, String ruinManName, Date date);

    void updateError(Integer id, Integer errorManId, String errorManName, Date date);

    List<Waste> findAll();

    List<Waste> findByHospitalId(Integer id);

    List<Waste> findByDate(Date d1, Date d2);
}